package com.nf.service;

import com.nf.dao.StudentDao;
import com.nf.entity.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class StudentServiceImpl implements StudentService {

    @Autowired
    private StudentDao studentDao;

    @Transactional
    public List<Student> getAllStudent() {
        return studentDao.getAllStudent();
    }
}
